<!-- HTML header for doxygen 1.9.1-->
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=9" />
    <meta name="generator" content="Doxygen 1.9.1" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>NumCpp: ClusterMaker.hpp Source File</title>
    <link href="tabs.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="jquery.js"></script>
    <script type="text/javascript" src="dynsections.js"></script>
    <link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
    <link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
    <link href="doxygen.css" rel="stylesheet" type="text/css" />
    <link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
<link href="doxygen-awesome-sidebar-only-darkmode-toggle.css" rel="stylesheet" type="text/css"/>
    <!-- ... other metadata & script includes ... -->
    <script type="text/javascript" src="../doxygen-awesome-css/doxygen-awesome-darkmode-toggle.js"></script>
    <script type="text/javascript">
        DoxygenAwesomeDarkModeToggle.init()
    </script>
    <script type="text/javascript"
        src="../doxygen-awesome-css/doxygen-awesome-fragment-copy-button.js"></script>
    <script type="text/javascript">
        DoxygenAwesomeFragmentCopyButton.init()
    </script>
    <script type="text/javascript" src="../doxygen-awesome-css/doxygen-awesome-paragraph-link.js"></script>
    <script type="text/javascript">
        DoxygenAwesomeParagraphLink.init()
    </script>
</head>
<body>
    <div id="top">
        <!-- do not remove this div, it is closed by doxygen! -->
        <div id="titlearea">
            <table cellspacing="0" cellpadding="0">
                <tbody>
                    <tr style="height: 56px;">
                        <td id="projectlogo"><img alt="Logo" src="NumCppLogoDoxygen.png" /></td>
                        <td id="projectalign" style="padding-left: 0.5em;">
                            <div id="projectname">NumCpp
                                &#160;<span id="projectnumber">2.8.0</span>
                            </div>
                            <div id="projectbrief">A Templatized Header Only C++ Implementation of the Python NumPy Library</div>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <!-- end header part --><!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('_cluster_maker_8hpp_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">ClusterMaker.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_cluster_maker_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160; </div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160; </div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#include &lt;algorithm&gt;</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &lt;cmath&gt;</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#include &lt;set&gt;</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#include &lt;utility&gt;</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160; </div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_error_8hpp.html">NumCpp/Core/Internal/Error.hpp</a>&quot;</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_static_asserts_8hpp.html">NumCpp/Core/Internal/StaticAsserts.hpp</a>&quot;</span></div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_types_8hpp.html">NumCpp/Core/Types.hpp</a>&quot;</span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_cluster_8hpp.html">NumCpp/ImageProcessing/Cluster.hpp</a>&quot;</span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_nd_array_8hpp.html">NumCpp/NdArray.hpp</a>&quot;</span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160; </div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacenc.html">nc</a></div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;{</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    <span class="keyword">namespace </span>imageProcessing</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    {</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;        <span class="comment">//=============================================================================</span></div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;        <span class="comment">// Class Description:</span></div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="comment"></span>        <span class="keyword">template</span>&lt;<span class="keyword">typename</span> dtype&gt;</div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="classnc_1_1image_processing_1_1_cluster_maker.html">   52</a></span>&#160;        <span class="keyword">class </span><a class="code" href="classnc_1_1image_processing_1_1_cluster_maker.html">ClusterMaker</a></div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;        {</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        <span class="keyword">private</span>:</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;            STATIC_ASSERT_ARITHMETIC(dtype);</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160; </div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        <span class="keyword">public</span>:</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;            <span class="comment">//================================Typedefs=====================================</span></div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="classnc_1_1image_processing_1_1_cluster_maker.html#a870aeb2f713b4efba22a2f978704c215">   59</a></span>&#160;            <span class="keyword">using</span> <a class="code" href="classnc_1_1image_processing_1_1_cluster_maker.html#a870aeb2f713b4efba22a2f978704c215">const_iterator</a> = <span class="keyword">typename</span> std::vector&lt;Cluster&lt;dtype&gt;&gt;<a class="code" href="classnc_1_1image_processing_1_1_cluster_maker.html#a870aeb2f713b4efba22a2f978704c215">::const_iterator</a>;</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160; </div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;            <span class="comment">//=============================================================================</span></div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;            <span class="comment">// Description:</span></div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="classnc_1_1image_processing_1_1_cluster_maker.html#a17c7a9f6260f7d6d0aea002b7e5e6ae6">   71</a></span>&#160;<span class="comment"></span>            <a class="code" href="classnc_1_1image_processing_1_1_cluster_maker.html#a17c7a9f6260f7d6d0aea002b7e5e6ae6">ClusterMaker</a>(<span class="keyword">const</span> <a class="code" href="classnc_1_1_nd_array.html">NdArray&lt;bool&gt;</a>* <span class="keyword">const</span>  inXcdArrayPtr,</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;                         <span class="keyword">const</span> <a class="code" href="classnc_1_1_nd_array.html">NdArray&lt;dtype&gt;</a>* <span class="keyword">const</span> inIntensityArrayPtr,</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;                         <a class="code" href="namespacenc.html#a9ba5a0aa26753a185985b8273fb9062d">uint8</a>                       inBorderWidth = 0) :</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;                xcds_(inXcdArrayPtr),</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;                intensities_(inIntensityArrayPtr)</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;            {</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;                <span class="keywordflow">if</span> (xcds_-&gt;<a class="code" href="classnc_1_1_nd_array.html#a2d1b4adfe3c9897ffe3dca45e357b2b4">shape</a>() != intensities_-&gt;shape())</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;                {</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;                    <a class="code" href="_error_8hpp.html#af2aff1172060367b9c5398fa097fa8fd">THROW_INVALID_ARGUMENT_ERROR</a>(<span class="stringliteral">&quot;input xcd and intensity arrays must be the same shape.&quot;</span>);</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;                }</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160; </div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;                shape_ = xcds_-&gt;<a class="code" href="classnc_1_1_nd_array.html#a2d1b4adfe3c9897ffe3dca45e357b2b4">shape</a>();</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160; </div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;                <span class="comment">// convert the NdArray of booleans to a vector of exceedances</span></div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;                <span class="keywordflow">for</span> (<a class="code" href="namespacenc.html#af0f49663fb63332596e2e6327009d581">uint32</a> row = 0; row &lt; shape_.<a class="code" href="classnc_1_1_shape.html#a6f89f699dea6eb89eef19e00c92b223a">rows</a>; ++row)</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;                {</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;                    <span class="keywordflow">for</span> (<a class="code" href="namespacenc.html#af0f49663fb63332596e2e6327009d581">uint32</a> col = 0; col &lt; shape_.<a class="code" href="classnc_1_1_shape.html#aae1a3c997648aacaefb60d0e6d0bf10d">cols</a>; ++col)</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;                    {</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;                        <span class="keywordflow">if</span> (xcds_-&gt;operator()(row, col))</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;                        {</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;                            <span class="keyword">const</span> <a class="code" href="classnc_1_1image_processing_1_1_pixel.html">Pixel&lt;dtype&gt;</a> thePixel(row, col, intensities_-&gt;operator()(row, col));</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;                            xcdsVec_.push_back(thePixel);</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;                        }</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;                    }</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;                }</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160; </div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;                runClusterMaker();</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160; </div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;                <span class="keywordflow">for</span> (<a class="code" href="namespacenc.html#a9ba5a0aa26753a185985b8273fb9062d">uint8</a> i = 0; i &lt; inBorderWidth; ++i)</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;                {</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;                    expandClusters();</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;                }</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;            }</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160; </div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;            <span class="comment">//=============================================================================</span></div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;            <span class="comment">// Description:</span></div>
<div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="classnc_1_1image_processing_1_1_cluster_maker.html#ae437071bfc291a36745d043ddd4cba1d">  111</a></span>&#160;<span class="comment"></span>            <a class="code" href="namespacenc.html#af0f49663fb63332596e2e6327009d581">uint32</a> <a class="code" href="classnc_1_1image_processing_1_1_cluster_maker.html#ae437071bfc291a36745d043ddd4cba1d">size</a>() noexcept</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;            {</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;                <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span><a class="code" href="namespacenc.html#af0f49663fb63332596e2e6327009d581">uint32</a><span class="keyword">&gt;</span>(clusters_.size());</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;            }</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160; </div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;            <span class="comment">//=============================================================================</span></div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;            <span class="comment">// Description:</span></div>
<div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="classnc_1_1image_processing_1_1_cluster_maker.html#ae92d75ae626bb18324b0dfe69ee44f25">  124</a></span>&#160;<span class="comment"></span>            <span class="keyword">const</span> <a class="code" href="classnc_1_1image_processing_1_1_cluster.html">Cluster&lt;dtype&gt;</a>&amp; <a class="code" href="classnc_1_1image_processing_1_1_cluster_maker.html#ae92d75ae626bb18324b0dfe69ee44f25">operator[]</a>(<a class="code" href="namespacenc.html#af0f49663fb63332596e2e6327009d581">uint32</a> inIndex) <span class="keyword">const</span> noexcept</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;            {</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;                <span class="keywordflow">return</span> clusters_[inIndex];</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;            }</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160; </div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;            <span class="comment">//=============================================================================</span></div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;            <span class="comment">// Description:</span></div>
<div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="classnc_1_1image_processing_1_1_cluster_maker.html#a679db8e4b1f175af3db67c756c54d6b1">  137</a></span>&#160;<span class="comment"></span>            <span class="keyword">const</span> <a class="code" href="classnc_1_1image_processing_1_1_cluster.html">Cluster&lt;dtype&gt;</a>&amp; <a class="code" href="classnc_1_1image_processing_1_1_cluster_maker.html#a679db8e4b1f175af3db67c756c54d6b1">at</a>(<a class="code" href="namespacenc.html#af0f49663fb63332596e2e6327009d581">uint32</a> inIndex)<span class="keyword"> const</span></div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;<span class="keyword">            </span>{</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;                <span class="keywordflow">if</span> (inIndex &gt;= clusters_.size())</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;                {</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;                    <a class="code" href="_error_8hpp.html#af2aff1172060367b9c5398fa097fa8fd">THROW_INVALID_ARGUMENT_ERROR</a>(<span class="stringliteral">&quot;index exceeds cluster size.&quot;</span>);</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;                }</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;                <span class="keywordflow">return</span> clusters_[inIndex];</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;            }</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160; </div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;            <span class="comment">//=============================================================================</span></div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;            <span class="comment">// Description:</span></div>
<div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="classnc_1_1image_processing_1_1_cluster_maker.html#a37c172d7253190e76b065ed2547c3020">  152</a></span>&#160;<span class="comment"></span>            <a class="code" href="classnc_1_1image_processing_1_1_cluster_maker.html#a870aeb2f713b4efba22a2f978704c215">const_iterator</a> <a class="code" href="classnc_1_1image_processing_1_1_cluster_maker.html#a37c172d7253190e76b065ed2547c3020">begin</a>() const noexcept</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;            {</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;                <span class="keywordflow">return</span> clusters_.cbegin();</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;            }</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160; </div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;            <span class="comment">//=============================================================================</span></div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;            <span class="comment">// Description:</span></div>
<div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="classnc_1_1image_processing_1_1_cluster_maker.html#a7d5ceccddb2db3b143c772ec9d66460a">  163</a></span>&#160;<span class="comment"></span>            <a class="code" href="classnc_1_1image_processing_1_1_cluster_maker.html#a870aeb2f713b4efba22a2f978704c215">const_iterator</a> <a class="code" href="classnc_1_1image_processing_1_1_cluster_maker.html#a7d5ceccddb2db3b143c772ec9d66460a">end</a>() const noexcept</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;            {</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;                <span class="keywordflow">return</span> clusters_.cend();</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;            }</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160; </div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;        <span class="keyword">private</span>:</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;            <span class="comment">//==================================Attributes=================================</span></div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;            <span class="keyword">const</span> <a class="code" href="classnc_1_1_nd_array.html">NdArray&lt;bool&gt;</a>* <span class="keyword">const</span>  xcds_;</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;            <span class="keyword">const</span> <a class="code" href="classnc_1_1_nd_array.html">NdArray&lt;dtype&gt;</a>* <span class="keyword">const</span> intensities_;</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;            std::vector&lt;Pixel&lt;dtype&gt;&gt;   xcdsVec_{};</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160; </div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;            <a class="code" href="classnc_1_1_shape.html">Shape</a> shape_{};</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160; </div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;            std::vector&lt;Cluster&lt;dtype&gt;&gt; clusters_{};</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160; </div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;            <span class="comment">//=============================================================================</span></div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;            <span class="comment">// Description:</span></div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;<span class="comment"></span>            Pixel&lt;dtype&gt; makePixel(<a class="code" href="namespacenc.html#a9386099a0fdc2bc9fb0dbfde5606584d">int32</a> inRow, <a class="code" href="namespacenc.html#a9386099a0fdc2bc9fb0dbfde5606584d">int32</a> inCol) noexcept</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;            {</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;                <span class="comment">// Make sure that on the edges after i&#39;ve added or subtracted 1 from the row and col that</span></div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;                <span class="comment">// i haven&#39;t gone over the edge</span></div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;                <span class="keyword">const</span> <a class="code" href="namespacenc.html#af0f49663fb63332596e2e6327009d581">uint32</a> row      = <a class="code" href="namespacenc.html#a8a61a49362258590b70289fd63fb2d8e">std::min</a>(<span class="keyword">static_cast&lt;</span><a class="code" href="namespacenc.html#af0f49663fb63332596e2e6327009d581">uint32</a><span class="keyword">&gt;</span>(std::max&lt;int32&gt;(inRow, 0)), shape_.<a class="code" href="classnc_1_1_shape.html#a6f89f699dea6eb89eef19e00c92b223a">rows</a> - 1);</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;                <span class="keyword">const</span> <a class="code" href="namespacenc.html#af0f49663fb63332596e2e6327009d581">uint32</a> col      = <a class="code" href="namespacenc.html#a8a61a49362258590b70289fd63fb2d8e">std::min</a>(<span class="keyword">static_cast&lt;</span><a class="code" href="namespacenc.html#af0f49663fb63332596e2e6327009d581">uint32</a><span class="keyword">&gt;</span>(std::max&lt;int32&gt;(inCol, 0)), shape_.<a class="code" href="classnc_1_1_shape.html#aae1a3c997648aacaefb60d0e6d0bf10d">cols</a> - 1);</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;                <span class="keyword">const</span> dtype intensity = intensities_-&gt;operator()(row, col);</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160; </div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;                <span class="keywordflow">return</span> Pixel&lt;dtype&gt;(row, col, intensity);</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;            }</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160; </div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;            <span class="comment">//=============================================================================</span></div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;            <span class="comment">// Description:</span></div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;<span class="comment"></span>            <span class="keywordtype">void</span> findNeighbors(<span class="keyword">const</span> Pixel&lt;dtype&gt;&amp; inPixel, std::set&lt;Pixel&lt;dtype&gt;&gt;&amp; outNeighbors)</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;            {</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;                <span class="comment">// using a set will auto take care of adding duplicate pixels on the edges</span></div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160; </div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;                <span class="comment">// the 8 surrounding neighbors</span></div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;                <span class="keyword">const</span> <span class="keyword">auto</span> row = <span class="keyword">static_cast&lt;</span><a class="code" href="namespacenc.html#a9386099a0fdc2bc9fb0dbfde5606584d">int32</a><span class="keyword">&gt;</span>(inPixel.row);</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;                <span class="keyword">const</span> <span class="keyword">auto</span> col = <span class="keyword">static_cast&lt;</span><a class="code" href="namespacenc.html#a9386099a0fdc2bc9fb0dbfde5606584d">int32</a><span class="keyword">&gt;</span>(inPixel.col);</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160; </div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;                outNeighbors.insert(outNeighbors.end(), makePixel(row - 1, col - 1));</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;                outNeighbors.insert(outNeighbors.end(), makePixel(row - 1, col));</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;                outNeighbors.insert(outNeighbors.end(), makePixel(row - 1, col + 1));</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;                outNeighbors.insert(outNeighbors.end(), makePixel(row, col - 1));</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;                outNeighbors.insert(outNeighbors.end(), makePixel(row, col + 1));</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;                outNeighbors.insert(outNeighbors.end(), makePixel(row + 1, col - 1));</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;                outNeighbors.insert(outNeighbors.end(), makePixel(row + 1, col));</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;                outNeighbors.insert(outNeighbors.end(), makePixel(row + 1, col + 1));</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;            }</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160; </div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;            <span class="comment">//=============================================================================</span></div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;            <span class="comment">// Description:</span></div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;<span class="comment"></span>            <span class="keywordtype">void</span> findNeighborNotXcds(<span class="keyword">const</span> Pixel&lt;dtype&gt;&amp; inPixel, std::vector&lt;Pixel&lt;dtype&gt;&gt;&amp; outNeighbors)</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;            {</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;                std::set&lt;Pixel&lt;dtype&gt;&gt; neighbors;</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;                findNeighbors(inPixel, neighbors);</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160; </div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;                <span class="comment">// check if the neighboring pixels are exceedances and insert into the xcd vector</span></div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;                <span class="keywordflow">for</span> (<span class="keyword">auto</span>&amp; pixel : neighbors)</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;                {</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;                    <span class="keywordflow">if</span> (!xcds_-&gt;operator()(pixel.row, pixel.col))</div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;                    {</div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;                        outNeighbors.push_back(pixel);</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;                    }</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;                }</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;            }</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160; </div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;            <span class="comment">//=============================================================================</span></div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;            <span class="comment">// Description:</span></div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;<span class="comment"></span>            <span class="keywordtype">void</span> findNeighborXcds(<span class="keyword">const</span> Pixel&lt;dtype&gt;&amp; inPixel, std::vector&lt;uint32&gt;&amp; outNeighbors)</div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;            {</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;                std::set&lt;Pixel&lt;dtype&gt;&gt; neighbors;</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;                findNeighbors(inPixel, neighbors);</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;                std::vector&lt;Pixel&lt;dtype&gt;&gt; neighborXcds;</div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160; </div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;                <span class="comment">// check if the neighboring pixels are exceedances and insert into the xcd vector</span></div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;                <span class="keywordflow">for</span> (<span class="keyword">auto</span>&amp; pixel : neighbors)</div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;                {</div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;                    <span class="keywordflow">if</span> (xcds_-&gt;operator()(pixel.row, pixel.col))</div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;                    {</div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;                        neighborXcds.push_back(pixel);</div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;                    }</div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;                }</div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160; </div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;                <span class="comment">// loop through the neighbors and find the cooresponding index into exceedances_</span></div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;                <span class="keywordflow">for</span> (<span class="keyword">auto</span>&amp; pixel : neighborXcds)</div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;                {</div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;                    <span class="keyword">auto</span> theExceedanceIter = <a class="code" href="namespacenc_1_1stl__algorithms.html#a761aa9f3bd88f019c46fe6cece93ade2">std::find</a>(xcdsVec_.begin(), xcdsVec_.end(), pixel);</div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;                    outNeighbors.push_back(<span class="keyword">static_cast&lt;</span><a class="code" href="namespacenc.html#af0f49663fb63332596e2e6327009d581">uint32</a><span class="keyword">&gt;</span>(theExceedanceIter - xcdsVec_.begin()));</div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;                }</div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;            }</div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160; </div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;            <span class="comment">//=============================================================================</span></div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;            <span class="comment">// Description:</span></div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;<span class="comment"></span>            <span class="keywordtype">void</span> runClusterMaker()</div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;            {</div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;                <a class="code" href="namespacenc.html#af0f49663fb63332596e2e6327009d581">uint32</a> clusterId = 0;</div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160; </div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;                <span class="keywordflow">for</span> (<span class="keyword">auto</span>&amp; currentPixel : xcdsVec_)</div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;                {</div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;                    <span class="comment">// not already visited</span></div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;                    <span class="keywordflow">if</span> (currentPixel.clusterId == -1)</div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;                    {</div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;                        Cluster&lt;dtype&gt; newCluster(clusterId); <span class="comment">// a new cluster</span></div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;                        currentPixel.clusterId = clusterId;</div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;                        newCluster.addPixel(currentPixel); <span class="comment">// assign pixel to cluster</span></div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160; </div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;                        <span class="comment">// get the neighbors</span></div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;                        std::vector&lt;uint32&gt; neighborIds;</div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;                        findNeighborXcds(currentPixel, neighborIds);</div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;                        <span class="keywordflow">if</span> (neighborIds.empty())</div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;                        {</div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;                            clusters_.push_back(newCluster);</div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;                            ++clusterId;</div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;                            <span class="keywordflow">continue</span>;</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;                        }</div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160; </div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;                        <span class="comment">// loop through the neighbors</span></div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;                        <span class="keywordflow">for</span> (<a class="code" href="namespacenc.html#af0f49663fb63332596e2e6327009d581">uint32</a> neighborsIdx = 0; neighborsIdx &lt; neighborIds.size(); ++neighborsIdx)</div>
<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;                        {</div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;                            Pixel&lt;dtype&gt;&amp; currentNeighborPixel = xcdsVec_[neighborIds[neighborsIdx]];</div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160; </div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;                            <span class="comment">// go to neighbors</span></div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;                            std::vector&lt;uint32&gt; newNeighborIds;</div>
<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;                            findNeighborXcds(currentNeighborPixel, newNeighborIds);</div>
<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160; </div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;                            <span class="comment">// loop through the new neighbors and add them to neighbors</span></div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;                            <span class="keywordflow">for</span> (<span class="keyword">auto</span> newNeighborId : newNeighborIds)</div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;                            {</div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;                                <span class="comment">// not already in neighbors</span></div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;                                <span class="keywordflow">if</span> (<a class="code" href="namespacenc_1_1stl__algorithms.html#a761aa9f3bd88f019c46fe6cece93ade2">std::find</a>(neighborIds.begin(), neighborIds.end(), newNeighborId) ==</div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;                                    neighborIds.end())</div>
<div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;                                {</div>
<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;                                    neighborIds.push_back(newNeighborId);</div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;                                }</div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;                            }</div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160; </div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;                            <span class="comment">// not already assigned to a cluster</span></div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;                            <span class="keywordflow">if</span> (currentNeighborPixel.clusterId == -1)</div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;                            {</div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;                                currentNeighborPixel.clusterId = clusterId;</div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;                                newCluster.addPixel(currentNeighborPixel);</div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;                            }</div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;                        }</div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160; </div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;                        clusters_.push_back(std::move(newCluster));</div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;                        ++clusterId;</div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;                    }</div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;                }</div>
<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;            }</div>
<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160; </div>
<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;            <span class="comment">//=============================================================================</span></div>
<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;            <span class="comment">// Description:</span></div>
<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;<span class="comment"></span>            <span class="keywordtype">void</span> expandClusters()</div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;            {</div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;                <span class="comment">// loop through the clusters</span></div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;                <span class="keywordflow">for</span> (<span class="keyword">auto</span>&amp; theCluster : clusters_)</div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;                {</div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;                    <span class="comment">// loop through the pixels of the cluster</span></div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;                    <span class="keywordflow">for</span> (<span class="keyword">auto</span>&amp; thePixel : theCluster)</div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;                    {</div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;                        std::vector&lt;Pixel&lt;dtype&gt;&gt; neighborsNotXcds;</div>
<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;                        findNeighborNotXcds(thePixel, neighborsNotXcds);</div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160; </div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;                        <span class="comment">// loop through the neighbors and if they haven&#39;t already been added to the cluster, add them</span></div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;                        <span class="keywordflow">for</span> (<span class="keyword">auto</span>&amp; newPixel : neighborsNotXcds)</div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;                        {</div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;                            <span class="keywordflow">if</span> (<a class="code" href="namespacenc_1_1stl__algorithms.html#a761aa9f3bd88f019c46fe6cece93ade2">std::find</a>(theCluster.begin(), theCluster.end(), newPixel) == theCluster.end())</div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;                            {</div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;                                theCluster.addPixel(newPixel);</div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;                            }</div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;                        }</div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;                    }</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;                }</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;            }</div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;        };</div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;    } <span class="comment">// namespace imageProcessing</span></div>
<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;} <span class="comment">// namespace nc</span></div>
<div class="ttc" id="a_cluster_8hpp_html"><div class="ttname"><a href="_cluster_8hpp.html">Cluster.hpp</a></div></div>
<div class="ttc" id="a_error_8hpp_html"><div class="ttname"><a href="_error_8hpp.html">Error.hpp</a></div></div>
<div class="ttc" id="a_error_8hpp_html_af2aff1172060367b9c5398fa097fa8fd"><div class="ttname"><a href="_error_8hpp.html#af2aff1172060367b9c5398fa097fa8fd">THROW_INVALID_ARGUMENT_ERROR</a></div><div class="ttdeci">#define THROW_INVALID_ARGUMENT_ERROR(msg)</div><div class="ttdef"><b>Definition:</b> Error.hpp:36</div></div>
<div class="ttc" id="a_nd_array_8hpp_html"><div class="ttname"><a href="_nd_array_8hpp.html">NdArray.hpp</a></div></div>
<div class="ttc" id="a_static_asserts_8hpp_html"><div class="ttname"><a href="_static_asserts_8hpp.html">StaticAsserts.hpp</a></div></div>
<div class="ttc" id="a_types_8hpp_html"><div class="ttname"><a href="_types_8hpp.html">Types.hpp</a></div></div>
<div class="ttc" id="aclassnc_1_1_nd_array_html"><div class="ttname"><a href="classnc_1_1_nd_array.html">nc::NdArray&lt; bool &gt;</a></div></div>
<div class="ttc" id="aclassnc_1_1_nd_array_html_a2d1b4adfe3c9897ffe3dca45e357b2b4"><div class="ttname"><a href="classnc_1_1_nd_array.html#a2d1b4adfe3c9897ffe3dca45e357b2b4">nc::NdArray::shape</a></div><div class="ttdeci">Shape shape() const noexcept</div><div class="ttdef"><b>Definition:</b> NdArrayCore.hpp:4276</div></div>
<div class="ttc" id="aclassnc_1_1_shape_html"><div class="ttname"><a href="classnc_1_1_shape.html">nc::Shape</a></div><div class="ttdoc">A Shape Class for NdArrays.</div><div class="ttdef"><b>Definition:</b> Core/Shape.hpp:41</div></div>
<div class="ttc" id="aclassnc_1_1_shape_html_a6f89f699dea6eb89eef19e00c92b223a"><div class="ttname"><a href="classnc_1_1_shape.html#a6f89f699dea6eb89eef19e00c92b223a">nc::Shape::rows</a></div><div class="ttdeci">uint32 rows</div><div class="ttdef"><b>Definition:</b> Core/Shape.hpp:44</div></div>
<div class="ttc" id="aclassnc_1_1_shape_html_aae1a3c997648aacaefb60d0e6d0bf10d"><div class="ttname"><a href="classnc_1_1_shape.html#aae1a3c997648aacaefb60d0e6d0bf10d">nc::Shape::cols</a></div><div class="ttdeci">uint32 cols</div><div class="ttdef"><b>Definition:</b> Core/Shape.hpp:45</div></div>
<div class="ttc" id="aclassnc_1_1image_processing_1_1_cluster_html"><div class="ttname"><a href="classnc_1_1image_processing_1_1_cluster.html">nc::imageProcessing::Cluster</a></div><div class="ttdoc">Holds the information for a cluster of pixels.</div><div class="ttdef"><b>Definition:</b> Cluster.hpp:55</div></div>
<div class="ttc" id="aclassnc_1_1image_processing_1_1_cluster_maker_html"><div class="ttname"><a href="classnc_1_1image_processing_1_1_cluster_maker.html">nc::imageProcessing::ClusterMaker</a></div><div class="ttdoc">Clusters exceedance data into contiguous groups.</div><div class="ttdef"><b>Definition:</b> ClusterMaker.hpp:53</div></div>
<div class="ttc" id="aclassnc_1_1image_processing_1_1_cluster_maker_html_a17c7a9f6260f7d6d0aea002b7e5e6ae6"><div class="ttname"><a href="classnc_1_1image_processing_1_1_cluster_maker.html#a17c7a9f6260f7d6d0aea002b7e5e6ae6">nc::imageProcessing::ClusterMaker::ClusterMaker</a></div><div class="ttdeci">ClusterMaker(const NdArray&lt; bool &gt; *const inXcdArrayPtr, const NdArray&lt; dtype &gt; *const inIntensityArrayPtr, uint8 inBorderWidth=0)</div><div class="ttdef"><b>Definition:</b> ClusterMaker.hpp:71</div></div>
<div class="ttc" id="aclassnc_1_1image_processing_1_1_cluster_maker_html_a37c172d7253190e76b065ed2547c3020"><div class="ttname"><a href="classnc_1_1image_processing_1_1_cluster_maker.html#a37c172d7253190e76b065ed2547c3020">nc::imageProcessing::ClusterMaker::begin</a></div><div class="ttdeci">const_iterator begin() const noexcept</div><div class="ttdef"><b>Definition:</b> ClusterMaker.hpp:152</div></div>
<div class="ttc" id="aclassnc_1_1image_processing_1_1_cluster_maker_html_a679db8e4b1f175af3db67c756c54d6b1"><div class="ttname"><a href="classnc_1_1image_processing_1_1_cluster_maker.html#a679db8e4b1f175af3db67c756c54d6b1">nc::imageProcessing::ClusterMaker::at</a></div><div class="ttdeci">const Cluster&lt; dtype &gt; &amp; at(uint32 inIndex) const</div><div class="ttdef"><b>Definition:</b> ClusterMaker.hpp:137</div></div>
<div class="ttc" id="aclassnc_1_1image_processing_1_1_cluster_maker_html_a7d5ceccddb2db3b143c772ec9d66460a"><div class="ttname"><a href="classnc_1_1image_processing_1_1_cluster_maker.html#a7d5ceccddb2db3b143c772ec9d66460a">nc::imageProcessing::ClusterMaker::end</a></div><div class="ttdeci">const_iterator end() const noexcept</div><div class="ttdef"><b>Definition:</b> ClusterMaker.hpp:163</div></div>
<div class="ttc" id="aclassnc_1_1image_processing_1_1_cluster_maker_html_a870aeb2f713b4efba22a2f978704c215"><div class="ttname"><a href="classnc_1_1image_processing_1_1_cluster_maker.html#a870aeb2f713b4efba22a2f978704c215">nc::imageProcessing::ClusterMaker::const_iterator</a></div><div class="ttdeci">typename std::vector&lt; Cluster&lt; dtype &gt; &gt;::const_iterator const_iterator</div><div class="ttdef"><b>Definition:</b> ClusterMaker.hpp:59</div></div>
<div class="ttc" id="aclassnc_1_1image_processing_1_1_cluster_maker_html_ae437071bfc291a36745d043ddd4cba1d"><div class="ttname"><a href="classnc_1_1image_processing_1_1_cluster_maker.html#ae437071bfc291a36745d043ddd4cba1d">nc::imageProcessing::ClusterMaker::size</a></div><div class="ttdeci">uint32 size() noexcept</div><div class="ttdef"><b>Definition:</b> ClusterMaker.hpp:111</div></div>
<div class="ttc" id="aclassnc_1_1image_processing_1_1_cluster_maker_html_ae92d75ae626bb18324b0dfe69ee44f25"><div class="ttname"><a href="classnc_1_1image_processing_1_1_cluster_maker.html#ae92d75ae626bb18324b0dfe69ee44f25">nc::imageProcessing::ClusterMaker::operator[]</a></div><div class="ttdeci">const Cluster&lt; dtype &gt; &amp; operator[](uint32 inIndex) const noexcept</div><div class="ttdef"><b>Definition:</b> ClusterMaker.hpp:124</div></div>
<div class="ttc" id="aclassnc_1_1image_processing_1_1_pixel_html"><div class="ttname"><a href="classnc_1_1image_processing_1_1_pixel.html">nc::imageProcessing::Pixel</a></div><div class="ttdoc">Holds the information for a single pixel.</div><div class="ttdef"><b>Definition:</b> Pixel.hpp:47</div></div>
<div class="ttc" id="anamespacenc_1_1stl__algorithms_html_a761aa9f3bd88f019c46fe6cece93ade2"><div class="ttname"><a href="namespacenc_1_1stl__algorithms.html#a761aa9f3bd88f019c46fe6cece93ade2">nc::stl_algorithms::find</a></div><div class="ttdeci">InputIt find(InputIt first, InputIt last, const T &amp;value) noexcept</div><div class="ttdef"><b>Definition:</b> StlAlgorithms.hpp:207</div></div>
<div class="ttc" id="anamespacenc_html"><div class="ttname"><a href="namespacenc.html">nc</a></div><div class="ttdef"><b>Definition:</b> Coordinate.hpp:45</div></div>
<div class="ttc" id="anamespacenc_html_a8a61a49362258590b70289fd63fb2d8e"><div class="ttname"><a href="namespacenc.html#a8a61a49362258590b70289fd63fb2d8e">nc::min</a></div><div class="ttdeci">NdArray&lt; dtype &gt; min(const NdArray&lt; dtype &gt; &amp;inArray, Axis inAxis=Axis::NONE)</div><div class="ttdef"><b>Definition:</b> min.hpp:44</div></div>
<div class="ttc" id="anamespacenc_html_a9386099a0fdc2bc9fb0dbfde5606584d"><div class="ttname"><a href="namespacenc.html#a9386099a0fdc2bc9fb0dbfde5606584d">nc::int32</a></div><div class="ttdeci">std::int32_t int32</div><div class="ttdef"><b>Definition:</b> Types.hpp:36</div></div>
<div class="ttc" id="anamespacenc_html_a9ba5a0aa26753a185985b8273fb9062d"><div class="ttname"><a href="namespacenc.html#a9ba5a0aa26753a185985b8273fb9062d">nc::uint8</a></div><div class="ttdeci">std::uint8_t uint8</div><div class="ttdef"><b>Definition:</b> Types.hpp:42</div></div>
<div class="ttc" id="anamespacenc_html_af0f49663fb63332596e2e6327009d581"><div class="ttname"><a href="namespacenc.html#af0f49663fb63332596e2e6327009d581">nc::uint32</a></div><div class="ttdeci">std::uint32_t uint32</div><div class="ttdef"><b>Definition:</b> Types.hpp:40</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_34171bd951b13a53aa9f237277a18e40.html">NumCpp</a></li><li class="navelem"><a class="el" href="dir_d4391026049f7aede16e9c18d53d30b9.html">ImageProcessing</a></li><li class="navelem"><a class="el" href="_cluster_maker_8hpp.html">ClusterMaker.hpp</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
